package org.jk.jkdao.example;

import java.util.Date;
import java.util.ArrayList;
import java.util.List;

public class Auteurs {

	private int __id = 0;
	private String _nom = null;
	private String _prenom = null;
	private String _alias = null;
	private java.sql.Date _date_nais = null;
	private String _image = null;
	private String _website = null;
	private String _email = null;
	private java.sql.Blob _note = null;
	private short _del = 0;
	private String tst = null;
	
	public Auteurs(){
		
	}
	
	public Auteurs(int id){
		this.__id = id;
	}
	
	public Auteurs(String nom){
		this._nom = nom;
	}
	
	public int getId() {
		return __id;
	}

	public void setId(int id) {
		this.__id = id;
	}

	public String getNom() {
		return _nom;
	}

	public void setNom(String nom) {
		this._nom = nom;
	}

	public String getPrenom() {
		return _prenom;
	}

	public void setPrenom(String prenom) {
		this._prenom = prenom;
	}

	public String getAlias() {
		return _alias;
	}

	public void setAlias(String alias) {
		this._alias = alias;
	}

	public String toString(){
		return "[" + __id + "," + _nom + "," + _prenom + "," + _alias + "]";
	}
	
	public boolean equals(Auteurs aut){
		return (aut.getNom().equals(_nom) && aut.getPrenom().equals(_prenom));
	}

	/**
	 * @return Returns the _date.
	 */
	public Date getDate_Nais() {
		return _date_nais;
	}

	/**
	 * @param _date The _date to set.
	 */
	public void setDate_Nais(java.sql.Date date) {
		this._date_nais = date;
	}

	/**
	 * @return Returns the _del.
	 */
	public short getdel() {
		return _del;
	}

	/**
	 * @param _del The _del to set.
	 */
	public void setdel(short _del) {
		this._del = _del;
	}

	/**
	 * @return Returns the _email.
	 */
	public String getemail() {
		return _email;
	}

	/**
	 * @param _email The _email to set.
	 */
	public void setemail(String _email) {
		this._email = _email;
	}

	/**
	 * @return Returns the _image.
	 */
	public String getimage() {
		return _image;
	}

	/**
	 * @param _image The _image to set.
	 */
	public void setimage(String _image) {
		this._image = _image;
	}

	/**
	 * @return Returns the _note.
	 */
	public java.sql.Blob getnote() {
		return _note;
	}

	/**
	 * @param _note The _note to set.
	 */
	public void setnote(java.sql.Blob _note) {
		this._note = _note;
	}

	/**
	 * @return Returns the _website.
	 */
	public String getwebsite() {
		return _website;
	}

	/**
	 * @param _website The _website to set.
	 */
	public void setwebsite(String _website) {
		this._website = _website;
	}
}

